﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace LeafHttp
{
    /// <summary>
    /// 响应结果
    /// </summary>
    public class ResponseResult
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string StatusText { get; set; }
        /// <summary>
        /// 响应数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 响应头内容
        /// </summary>
        public Dictionary<string, string> Headers { get; set; }
        /// <summary>
        /// 请求的配置参数
        /// </summary>
        public RequestConfig Config { get; set; }
        /// <summary>
        /// 原始Http请求
        /// </summary>
        public HttpWebRequest RequestRaw { get; set; }
        /// <summary>
        /// 原始Http响应
        /// </summary>
        public HttpWebResponse ResponseRaw { get; set; }
    }
}
